<%@ page import="java.util.List" %>
<%@ page import="entity.Board" %>
<%@ page import="dao.IBoardDao" %>
<%@ page import="Impl.BoardDaoImpl" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title>main</title>
</head>
<body background="pic/ManBgroud.gif">
<%
    IBoardDao ibo = new BoardDaoImpl();
     List<Board> list = ibo.showAll();



%>
<div style="margin: 0px auto;width: 600px">
    <form action="addzhut_action.jsp" method="post">
        <strong>要添加的主题名字:</strong><input style="width: 300px" type="text" name="add" value="">
        <input type="submit" name="sou" value="确认添加">
    </form>


    <table style="width: 400px" cellspacing="10" cellpadding="">

        <tr>
            <th>主题编号</th>
            <th>主题名字</th>
        </tr>

        <%
            for (Board b : list) {
        %>

        <tr>
            <th><%=b.getBoardId()%>
            </th>
            <th><%=b.getBoardName()%>
            </th>
        </tr>

        <%
            }
        %>

    </table>
</div>


</body>
</html>
